import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class MainPanel extends JPanel
{
    public void paintComponent(Graphics g)
    {
    	super.paintComponent(g);
    	this.setBackground(Color.LIGHT_GRAY);
    	g.setColor(Color.WHITE);
    	for(int i = 0; i < 500; i += 25) g.drawLine(0, i + 25, 250, i + 25);
    	for(int i = 0; i < 250; i += 25) g.drawLine(i + 25, 0, i + 25, 500);
    }
    public MainPanel() {
		// TODO Auto-generated constructor stub
	}

}
